package fuxi;

import java.io.Serializable;

public class Student implements Serializable {

    private static final long serialVersionUID = -5938858585206027478L;
    private  String name;
    private  int age;
    transient private  String adress;

    public Student() {
    }

    public Student(String name, int age, String adress) {
        this.name = name;
        this.age = age;
        this.adress = adress;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return age
     */
    public int getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(int age) {
        this.age = age;
    }

    /**
     * 获取
     * @return adress
     */
    public String getAdress() {
        return adress;
    }

    /**
     * 设置
     * @param adress
     */
    public void setAdress(String adress) {
        this.adress = adress;
    }

    public String toString() {
        return "Studen.txt{name = " + name + ", age = " + age + ", adress = " + adress + "}";
    }
}
